import request from '@/utils/request';

export const getWordList = (data) => request({url: '/getWordList', method: 'post', data: data})

export const updateWord = (data) => request({url: '/updateWord', method: 'post', data: data})

export const addWordByFile = (formDataInfo, userId) => request({url: `/addWordByFile?userId=${userId}`, method: 'post', headers:{'Content-Type': 'multipart/form-data'}, data: formDataInfo})

export const addWordByWeb = (data) => request({url: '/addWordByWeb', method: 'post', data})

export const deleteWord = (data) => request({url: '/deleteWord', method: 'post', data})

export const loginAn =(data) => request({url: '/vue-admin-template/user/login', method: 'post', data})
